package com.molin.extensionTest.parentsDelegationModel;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        //在src目录下
        InputStream is = systemClassLoader.getResourceAsStream("prop.properties");
        Properties prpo=new Properties();
        prpo.load(is);
        System.out.println(prpo.toString());
    }
}
